#include <iostream>
#include <memory>
#include "tcp_server.hpp"
int main(int num,char * args[])
{
    if(num != 2)
    {
        std::cout << "./main port"<<std::endl;
        exit(1);
    }
    uint16_t port = std::stoi(args[1]);
    std::unique_ptr<TcpServer> tcp_ser(new TcpServer(port));

    tcp_ser->initserver();
    tcp_ser->run();
    
    return 0;
}